<?php
/**
 * Created by IntelliJ IDEA.
 * User: ahwwl
 * Date: 2018/5/16
 * Time: 下午12:56
 */

namespace app\model;


class CardLog extends CommentModel
{
    protected $table = "f_card_log";
    function addInfo($card_no,$user_id,$agent_id,$company_id=0,$info="")
    {
        $info = [
            "card_no" =>$card_no,
            "user_id" =>$user_id,
            "agent_id" =>$agent_id,
            "company_id"=>$company_id,
            "info" =>$info,
            "ctime" =>NOW_TIME
        ];
        return $this->insert($info);
    }
}